<div class="row">
	<div class="col-md-12">
		<h1>Danh mục hoá đơn <small>Quản lý các hoá đơn</small></h1>
		<ol class="breadcrumb">
            <li><a href="<?php echo admin_page_url(); ?>"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li class="active"><i class="fa fa-table"></i> Danh sách các hoá đơn hiện có</li>
        </ol>
    </div>
</div>

<div class="row">
    <div class="col-md-6 col-xs-12">
        <form method="get" action="<?php echo admin_page_url(ORDER_SLUG.'/tim-kiem'); ?>" enctype="multipart/form-data">
        <div class="input-group">
            <input type="text" class="form-control" name="s" value="<?php echo isset($searchkey)?$searchkey:''; ?>" placeholder="Tìm kiếm" />
            <span class="input-group-btn">
                <button class="btn btn-success" type="submit"><i class="fa fa-search"></i> Tìm kiếm!</button>
            </span>
        </div><!-- /input-group -->
        </form>
    </div>

    <div class="col-md-12 mgbt5">
        <div class="pull-right"><?php echo $pagingBar; ?></div>
    </div>

    <div class="col-md-12 col-xs-12">
        <div class="table-responsive">
            <table class="table table-bordered table-hover tablesorter item-list" data-href="<?php echo admin_page_url('hoa-don/kich-hoat'); ?>">
                <thead>
                    <tr>
                        <th class="header"># <i class="fa fa-sort"></i></th>
                        <th class="header">Gian hàng <i class="fa fa-sort"></i></th>
                        <th class="header">Số lượng giao dịch <i class="fa fa-sort"></i></th>
                        <th class="header">Chi tiết </th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($aOrder as $index=>$tOrder) { ?>
                    <tr class="can-edit" data-id="<?php echo $this->encrypt->encode($tOrder->getId()); ?>">
                        <th class="header bg-info"><?php echo $index+1; ?></th>
                        <td>
                            <h4 class="strong">
                                <a href="<?php echo admin_page_url(ORDER_SLUG . '/' . $tOrder->shop_slug); ?>">
                                    <?php echo $tOrder->shop_title; ?>
                                </a>
                            </h4>
                        </td>
                        <td class="strong"><?php echo $tOrder->order_count; ?></td>
                        <td>
                            <a class="btn btn-success" href="<?php echo admin_page_url(ORDER_SLUG . '/' . $tOrder->shop_slug); ?>">
                                <i class="glyphicon glyphicon-info-sign"></i>
                                Chi tiết
                            </a>
                        </td>
                    </tr>
                    <?php } ?>
                </tbody>
            </table>
        </div>
    </div>
    <div class="clearfix"></div>
</div>

<!-- Modal -->
<div class="modal fade" id="modal-order-detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
        </div>
    </div>
</div>